<?
require 'global.php';
if($customer_id==0) { header('Location:login.html'); exit; }

$gee=$wishlist;
$url='wish';

$page=1; if(isset($_GET["page"]))if(is_numeric($_GET["page"]))$page=$_GET["page"];

$gee->rows=12;
$where=array();
$where[]=array('name'=>'customer_id','val'=>$customer_id);
$order_by='id';
$pages=$gee->count_pages($where);
$info=$gee->get_page($page,$where,$order_by);

$in_array=array();
foreach ($info as $val) {
	$in_array[]=$val['product_id'];
}

$arr_product=array();
$where=array();
$where[]=array('name'=>'id','val'=>$in_array,'opn'=>'in');
$tem=$product->get_rows_advanced(1024,$where);
foreach($tem as $val) $arr_product[$val['id']]=$val;
// seo
$cate_name=WEB_MY_COLLECTION;
$title=$cate_name.' - '.$config['SITE_TITLE_'.LANG];
$kwd=$title;
$dpn=$kwd;

// view 加载视图
require VIEW.$url.'.php';

// end of file
